<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<%@ include file="../../header.jsp"%>
 <link href="<c:out value="${ctx}"/>/pagejs/pagination.css" rel="stylesheet">
<!--引入JS-->
	<script type="text/javascript" src="${ctx }/pagejs/pagination.js"></script>
<meta charset="UTF-8" />
<style>
	.panel-info{
		position: relative;
	}
	.panel-info #delete_button{
		position: absolute;
		top: 0;
		right:0px;
	}
</style>
<script>
function deleteReply(replyId){
	$.post(ctx+"/post/deleteReply",{
		replyId:replyId
	},function(result){
		alert("操作成功");
		window.location.href = location.href;
	});
}
</script>
<div class="container">
	<div class="row">
	<div class="col-sm-12">
		<ol class="breadcrumb">
	  <li><a href="#">晒单</a></li>
	  <li><a href="#" class="active">评论列表</a></li>
	</ol>
	</div>
	</div>
	<c:forEach items="${list }" var="bean">
	<div class="panel panel-info">
	 	<div class="panel-body">${bean.content }</div>
	 	<button type="button" class="btn btn-danger" id="delete_button" onclick="deleteReply('${bean.id}')">删除</button>
	</div>
	</c:forEach>
</div>